import http from '../util/request.js'

/**
 * 用户登录接口
 */
export const loginApi = (data) => {
  return http.post('/api/auth/login', data)
}

/**
 * 用户注册接口
 */
export const registerApi = (data) => {
  return http.post('/api/auth/register', data)
}

/**
 * 用户退出登录接口
 */
export const logoutApi = () => {
  return http.post('/api/auth/logout')
}

